import axios from "../axios";

export const save = data => {
  return axios({
    url: "/text",
    method: "post",
    data
  });
};

export const findPage = params => {
  return axios({
    url: "/text",
    method: "get",
    params
  });
};

export const uploadFile = data => {
  return axios({
    url: "file/uploadFile",
    method: "post",
    data
  });
};
